package com.yqh.service;

import com.github.pagehelper.PageInfo;
import com.yqh.dto.ProductSearchDTO;
import com.yqh.entity.Product;
import com.yqh.vo.ProductSearchVO;

import java.util.List;

/**
 * 商品模块
 *
 * @author 阳秋豪
 * @createTime 2024/3/22
 */
public interface ProductService {

    List<Product> getAllProduct();

    PageInfo<ProductSearchVO> getSearchProduct(ProductSearchDTO productSearchDTO);

    void addProduct(Product product);

    void alterProduct(Product product);

    void deleteProduct(Integer productId);
}
